package com.ichir.projects.uiflow.ui.api;

import java.util.Map;

import com.ichir.projects.uiflow.ApplicationContext;
import com.ichir.projects.uiflow.events.UiEvent;

/**
 * UI Action API.
 * 
 * @author mahieddine
 * @since 1.0.0
 */
public interface IUiAction extends IUiPart {

	/**
	 * Execute action.
	 * @param context application context
	 * @param attributes event attributes
	 * @return event action event
	 */
	UiEvent execute(ApplicationContext context, Map<String, Object> attributes);
}
